
$(document).ready(function(){
		$('#knap').click(function() {
			if (this.webkitRequestFullScreen){
			    document.documentElement.webkitRequestFullScreen();
				$('#vindue').css('position', 'fixed').css('width', '100%').css('height', '100%');
				$('#vindue').focus();
				$('button').hide();
			}else{
			    alert('Browser not supported. You need to install the latest WebKit (for example Chrome 15) in order to use the full-screen API.');
			}
		});
		

		
		
	


		
		

});







/*
$(document).ready(function() {
  
  $('#btn1').click(function() {
    document.body.webkitRequestFullScreen();
  });
  
  $('#btn2').click(function() {
    document.getElementById('aside').webkitRequestFullScreen();
  });
  
  function exit(){
    document.webkitCancelFullScreen()
  });




	$('#knap').click(function() {
		if (this.webkitRequestFullScreen){
		    document.documentElement.webkitRequestFullScreen();
			$('#vindue').css('width', '100%').css('height', '100%');
		}else{
		    alert('Browser not supported. You need to install the latest WebKit (for example Chrome 15) in order to use the full-screen API.');
		}
	});
	
	$(document).keyup(function(e) {
	  if (e.keyCode == 27) { exit(); }   // esc
	});

  
}) 



*/












